package com.suning.sawp.intf.model;

import java.io.Serializable;
import java.util.Date;

import org.apache.commons.lang3.StringUtils;

public class ModelBean implements Serializable {

    /**
     */
    private static final long serialVersionUID = 3608682072739864522L;
    /**
     * 大区名称
     */
    private String regionName;
    /**
     * 分公司名称
     */
    private String branchName;
    /**
     * 门店名称
     */
    private String storeName;
    /**
     * 品类名称
     */
    private String categoryName;
    /**
     * 大区编码
     */
    private String regionCode;
    /**
     * 分公司编码
     */
    private String branchCode;
    /**
     * 门店编码
     */
    private String storeCode;
    /**
     * 品类编码
     */
    private String cateCode;
    /**
     * 品牌4位编码
     */
    private String brand4code;
    /**
     * 品牌名称
     */
    private String brandName;
    /**
     * 商品编码
     */
    private String commCode;
    /**
     * 商品名称
     */
    private String commName;
    /**
     * 样机数量
     */
    private Integer modelCount;
    /**
     * 样机属性
     */
    private String modelProperty;
    /**
     * 库位
     */
    private String storage;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 新样标识: 0非新样,1新样. 默认1
     */
    private int newFlag;
    
    /**
     * 门店类型
     */
    private String storeType;

    public String getRegionName() {
        return regionName;
    }

    public void setRegionName(String regionName) {
        this.regionName = regionName;
    }

    public String getBranchName() {
        return branchName;
    }

    public void setBranchName(String branchName) {
        this.branchName = branchName;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public String getCommCode() {
        return commCode;
    }

    public void setCommCode(String commCode) {
        this.commCode = commCode;
    }

    public String getCommName() {
        return commName;
    }

    public void setCommName(String commName) {
        this.commName = commName;
    }

    public Integer getModelCount() {
        return modelCount;
    }

    public void setModelCount(Integer modelCount) {
        this.modelCount = modelCount;
    }

    public String getModelProperty() {
        return modelProperty;
    }

    public void setModelProperty(String modelProperty) {
        String str = modelProperty;
        if (StringUtils.isNotBlank(modelProperty)) {
            str = ModelConstant.getModelAttributeValue(Integer.valueOf(modelProperty));
        }
        this.modelProperty = str;
    }

    public String getStorage() {
        return storage;
    }

    public void setStorage(String storage) {
        this.storage = storage;
    }

    public String getRegionCode() {
        return regionCode;
    }

    public void setRegionCode(String regionCode) {
        this.regionCode = regionCode;
    }

    public String getBranchCode() {
        return branchCode;
    }

    public void setBranchCode(String branchCode) {
        this.branchCode = branchCode;
    }

    public String getStoreCode() {
        return storeCode;
    }

    public void setStoreCode(String storeCode) {
        this.storeCode = storeCode;
    }

    public String getCateCode() {
        return cateCode;
    }

    public void setCateCode(String cateCode) {
        this.cateCode = cateCode;
    }

    public String getBrand4code() {
        return brand4code;
    }

    public void setBrand4code(String brand4code) {
        this.brand4code = brand4code;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public int getNewFlag() {
        return newFlag;
    }

    public void setNewFlag(int newFlag) {
        this.newFlag = newFlag;
    }
    
    public String getStoreType() {
        return storeType;
    }

    public void setStoreType(String storeType) {
        this.storeType = storeType;
    }



    /**
     * 库位类型
     */
    public interface STORAGE_TYPE {
        /**
         * 柜台库
         */
        String COUNTER_TYPE = "8000";
        /**
         * 样机库
         */
        String MODEL_TYPE = "0007";
    }
}
